package com.zzty.zzlp.service;

import com.zzty.zzlp.entity.Chat;
import com.zzty.zzlp.entity.ChatBuffer;
import com.zzty.zzlp.entity.ChatUser;
import com.zzty.zzlp.entity.User;

import java.util.List;

public interface ChatService {


    public List<User> searchUsers();

    public void createChat(Chat chat);

    public List<ChatUser> searchUsersAndLastMessage(Integer userId);

    public String creatAllMessageTXT(Integer userId1, Integer userId2);

    public List<ChatBuffer> readMessage(Integer userId1, Integer userId2);


    public void readMessageEnd(Integer userId1, Integer userId2);

    public String searchAvatar(Integer userId);
}
